package com.woniu.car.parameter;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * Description:
 * date: 2021/6/28 10:43
 *
 * @author zhoubinbin
 * @since
 */
@Data
@ApiModel("新增用户详情接口")
public class AddUserInfoParam {
    @NotNull(message = "用户id不能为空")
    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "电话号码",example = "18782656463")
    @NotBlank(message = "电话不能为空")
    @Pattern(regexp = "^((13[0-9])|(14[0,1,4-9])|(15[0-3,5-9])|(16[2,5,6,7])|(17[0-8])|(18[0-9])|(19[0-3,5-9]))\\d{8}$",message = "请输入正确的中国大陆手机号")
    private String tel;
}
